POV-Ray : Newsgroups : povray.general : Render Panoramic photo for use in a sky box? : Re: Render Panoramic photo for use in a sky box? Server Time
31 Jul 2024 20:21:18 EDT (-0400)
  Re: Render Panoramic photo for use in a sky box?  
From: Slime
Date: 21 Sep 2006 01:27:22
Message: <451222ba$1@news.povray.org>
> How could I use POV to render 6 square tiles that I could then use to map
> this image onto the insides of a cube and not loose the effect -
> essentially I want to end up with a skybox

Here's what I use for that:

#declare camloc = <0,0,0>;
camera {
 location camloc
 right x
 up y
 direction z

 angle 90

 #if (frame_number = 0)
  look_at camloc + x
 #else #if (frame_number = 1)
  look_at camloc + -x
 #else #if (frame_number = 2)
  look_at camloc + y
 #else #if (frame_number = 3)
  look_at camloc + -y
 #else #if (frame_number = 4)
  look_at camloc + z
 #else #if (frame_number = 5)
  look_at camloc + -z
 #end #end #end #end #end #end
}


With command line arguments +kfi0 +kff5 .

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.